// pages/index/near/fileprint/print/print.js
Page({

  data: {

  },

 
  onLoad: function (options) {
    console.log(options);
    let filepath=options.filepath
    this.preview(filePath)
    

  },
  //预览
  preview(filePath){
     wx.openDocument({
       filePath: filePath,
       success:(res)=>{
         console.log(res);
         
       }
     })
  }
    
   
})